package org.uam.common;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;

import javax.servlet.http.HttpSession;

import org.uam.modules.user.User;

public class EntityActionSupport extends BaseActionSupport
{
    
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -6939323430137708909L;
    
    /**
     * rows of each page
     */
    // private static final int ROWS = 10;
    /**
     * StringBuffer initial size
     */
    private static final int HUNDRED = 100;
    
    /**
     * ?
     */
    private static final String SIGN_1 = "?";
    
    /**
     * &
     */
    private static final String SIGN_2 = "&";
    
    /**
     * =
     */
    private static final String SIGN_3 = "=";
    
    /**
     * "/"
     */
    private static final String SIGN_4 = "/";
    
    /**
     * checkedBox's id
     */
    protected String[] checkedIds;
    
    /**
     * error description info
     */
    protected String errorMsg;
    
    /**
     * association of ideas
     */
    protected String term;
    
    /**
     * 排序字段标识
     */
    protected String sortfield;
    
    /**
     * 排序顺序标识
     */
    protected String sortorder;
    
    /**
     * 弹框传的参数
     */
    protected String openterm;
    
    /**
     * 弹框传的参数
     */
    protected String params;
    
    /**
     * 弹框传的方法名
     */
    protected String methodName;
    
    private String downPath;// 下载路径
    
    private String urlAction;// 共同弹出框传递参数
    
    private String msg;// 提示信息
    
    private int flag = 0;// 显示状态位判定
    
    // 日期格式化
    public String dateFormat(String t, Date date)
    {
        SimpleDateFormat from = new SimpleDateFormat(t);
        return from.format(date);
    }
    
    
    public String[] getCheckedIds()
    {
        return checkedIds;
    }
    
    public void setCheckedIds(String[] checkedIds)
    {
        this.checkedIds = checkedIds;
    }
    
    public String getErrorMsg()
    {
        return errorMsg;
    }
    
    public void setErrorMsg(String errorMsg)
    {
        this.errorMsg = errorMsg;
    }
    
    public String getTerm()
    {
        return term;
    }
    
    public void setTerm(String term)
    {
        this.term = term;
    }
    
    public String getSortfield()
    {
        return sortfield;
    }
    
    public void setSortfield(String sortfield)
    {
        this.sortfield = sortfield;
    }
    
    public String getSortorder()
    {
        return sortorder;
    }
    
    public void setSortorder(String sortorder)
    {
        this.sortorder = sortorder;
    }
    
    public String getMsg()
    {
        return msg;
    }
    
    public void setMsg(String msg)
    {
        this.msg = msg;
    }
    
    public int getFlag()
    {
        return flag;
    }
    
    public void setFlag(int flag)
    {
        this.flag = flag;
    }
    
    public String getOpenterm()
    {
        return openterm;
    }
    
    public void setOpenterm(String openterm)
    {
        this.openterm = openterm;
    }
    
    public String getMethodName()
    {
        return methodName;
    }
    
    public void setMethodName(String methodName)
    {
        this.methodName = methodName;
    }
    
    public String getUrlAction()
    {
        return urlAction;
    }
    
    public void setUrlAction(String urlAction)
    {
        this.urlAction = urlAction;
    }
    
    public String getParams()
    {
        return params;
    }
    
    public void setParams(String params)
    {
        this.params = params;
    }
    
    public String getDownPath()
    {
        return downPath;
    }
    
    public void setDownPath(String downPath)
    {
        this.downPath = downPath;
    }
    
}
